import request from '@/utils/request'

export function getListApi(data) {
  return request({
    url: '/offlineClass/pageInfo',
    method: 'post',
    data
  })
}

export function saveApi(data) {
  return request({
    url: '/offlineClass/save',
    method: 'post',
    data
  })
}

export function changeStateApi(data) {
  return request({
    url: '/offlineClass/changeState',
    method: 'post',
    data
  })
}

export function deleteOfflineClassApi(data) {
  return request({
    url: '/offlineClass/batchDelete',
    method: 'post',
    data
  })
}

export function getEnrollListApi(data) {
  return request({
    url: `/enroll/pageInfo`,
    method: 'post',
    data
  })
}

export function getDetailApi(id) {
  return request({
    url: `/offlineClass/detail/${id}`,
    method: 'post',
  })
}

export function getOfflineClassListApi(data) {
  return request({
    url: '/offlineClass/pageInfo',
    method: 'post',
    data
  })
}